import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {BusinessComponent} from './business.component';
import {LogicAdminComponent} from './logicAdmin/logicAdmin.component';
import {PathAdminComponent} from './pathAdmin/pathAdmin.component';
import {AddUserComponent} from './addUser/addUser.component';
import {PathAddComponent} from './pathAdd/pathAdd.component';
import {LogicAddComponent} from './logicAdd/logicAdd.component';
import {GetLogicComponent} from './getLogic/getLogic.component';
import {PlaceComponent} from './place/place.component';
import {CompanyComponent} from './company/company.component';
import {EventComponent} from './event/event.component';
import {GetEventComponent} from './getEvent/getEvent.component';
import {AppEditionComponent} from './appEdition/appEdition.component';
import {RobotListComponent} from './robotList/roborList.component';
import {AddRoleComponent} from './addRole/addRole.component';

const childrenRoutes: Routes = [
  {path: 'logicAdmin', component: LogicAdminComponent},
  {path: 'pathAdmin', component: PathAdminComponent},
  {path: 'addUser', component: AddUserComponent},
  {path: 'pathAdd', component: PathAddComponent},
  {path: 'logicAdd', component: LogicAddComponent},
  {path: 'getLogic', component: GetLogicComponent},
  {path: 'place', component: PlaceComponent},
  {path: 'company', component: CompanyComponent},
  {path: 'event', component: EventComponent},
  {path: 'getEvent', component: GetEventComponent},
  {path: 'appEdition', component: AppEditionComponent},
  {path: 'robotList', component: RobotListComponent},
  {path: 'addRole', component: AddRoleComponent}

];
const businessRoutes: Routes = [{
  path: 'buz',
  component: BusinessComponent,
  children: childrenRoutes
}];

@NgModule({
  imports: [RouterModule.forChild(businessRoutes)],
  exports: [RouterModule],
  providers: []
})
export class BusinessRoutingModule {
}

